<?php
namespace app\common\config\model;

use think\Model;

class ConfigSystem extends Model
{
    protected $key='title';
    protected $table = 'tk_config_system';
    protected $autoWriteTimestamp = false;
    protected $updateTime = false;

    public function getContentAttr($value)
    {
        return json_decode($value, true);
    }

    public function setContentAttr($value)
    {
        return json_encode($value);
    }
}